package com.cn;


import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.slf4j.LoggerFactory;


public class Log4jDemo {

  private static Logger LOGGER_LOG4J2 = LogManager.getLogger(Log4jDemo.class.getName());

  static final org.slf4j.Logger LOGGER_SL4J = LoggerFactory.getLogger(Log4jDemo.class);

  public static void main(String[] args) {

    final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(Log4jDemo.class);

    LOGGER_LOG4J2.info("LOGGER_LOG4J2 hello world ! {}", "ycy");

    LOGGER_LOG4J2.debug("LOGGER_LOG4J2 hello world ! {}", "ycy");

    LOGGER_SL4J.info("LOGGER_SL4J hello world ! {}", "ycy");

  }

}
